package com.crm.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @version 1.0
 * @description:
 * @date 2024/6/7 11:12
 */

@Data
@Schema(description = "用户类")
@TableName("user")
public class User extends BaseModel {
    private static final long serialVersionUID = 1L;

    @Schema(description = "账号")
    @TableField("user_name")
    private String userName;

    @Schema(description = "昵称")
    @TableField("full_name")
    private String fullName;

    @Schema(description = "密码")
    @JsonIgnore
    @TableField("password")
    private String password;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "手机号")
    @TableField("phone")
    private  String phone;

    @Schema(description = "用户状态 1=在职 2=离职")
    @TableField("status")
    private int status;

    @Schema(description = "部门id")
    @TableField("department_id")
    private Long departmentId;

}